package com.ruoyi.employee.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社保方案对象 ss_scheme
 *
 * @author hango
 * @date 2025-10-13
 */
public class SsScheme extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 社保方案名称 */
    @Excel(name = "社保方案名称")
    private String schemeName;

    /** 基本养老金额 */
    @Excel(name = "基本养老金额")
    private BigDecimal pensionAmount;

    /** 医疗保险金额 */
    @Excel(name = "医疗保险金额")
    private BigDecimal medicalAmount;

    /** 失业保险金额 */
    @Excel(name = "失业保险金额")
    private BigDecimal unemploymentAmount;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortNo;

    /** 状态：0正常 1停用 */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 删除标志（0存在 1/2删除，按库定义） */
    private String delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getSchemeName() { return schemeName; }
    public void setSchemeName(String schemeName) { this.schemeName = schemeName; }

    public BigDecimal getPensionAmount() { return pensionAmount; }
    public void setPensionAmount(BigDecimal pensionAmount) { this.pensionAmount = pensionAmount; }

    public BigDecimal getMedicalAmount() { return medicalAmount; }
    public void setMedicalAmount(BigDecimal medicalAmount) { this.medicalAmount = medicalAmount; }

    public BigDecimal getUnemploymentAmount() { return unemploymentAmount; }
    public void setUnemploymentAmount(BigDecimal unemploymentAmount) { this.unemploymentAmount = unemploymentAmount; }

    public Integer getSortNo() { return sortNo; }
    public void setSortNo(Integer sortNo) { this.sortNo = sortNo; }

    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }

    @Override public String getRemark() { return remark; }
    @Override public void setRemark(String remark) { this.remark = remark; }

    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String delFlag) { this.delFlag = delFlag; }

    @Override public Date getCreateTime() { return createTime; }
    @Override public void setCreateTime(Date createTime) { this.createTime = createTime; }

    @Override public Date getUpdateTime() { return updateTime; }
    @Override public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }

    /* ===== 前端友好别名（只读映射，不改库结构） ===== */
    @JsonProperty("pensionPersonal")
    public BigDecimal getPensionPersonal() { return pensionAmount; }

    @JsonProperty("medicalPersonal")
    public BigDecimal getMedicalPersonal() { return medicalAmount; }

    @JsonProperty("unemployPersonal")
    public BigDecimal getUnemployPersonal() { return unemploymentAmount; }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("schemeName", getSchemeName())
                .append("pensionAmount", getPensionAmount())
                .append("medicalAmount", getMedicalAmount())
                .append("unemploymentAmount", getUnemploymentAmount())
                .append("sortNo", getSortNo())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
